package com.cinc.mdm.modules.codeRule.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 编码规则
 * @Author: jeecg-boot
 * @Date:   2021-10-12
 * @Version: V1.0
 */
@Data
@TableName("mdm_code_rule")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="mdm_code_rule对象", description="编码规则")
public class MdmCodeRule implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**编码类型*/
	@Excel(name = "编码类型", width = 15, dicCode = "mdm_code_type")
	@Dict(dicCode = "mdm_code_type")
    @ApiModelProperty(value = "编码类型")
    private String codeType;
	/**前缀*/
	@Excel(name = "前缀", width = 15)
    @ApiModelProperty(value = "前缀")
    private String prefix;
	/**包含日期*/
	@Excel(name = "包含日期", width = 15)
    @ApiModelProperty(value = "包含日期")
    private String dateFlag;
	/**日期格式*/
	@Excel(name = "日期格式", width = 15, dicCode = "mdm_date_fmt")
	@Dict(dicCode = "mdm_date_fmt")
    @ApiModelProperty(value = "日期格式")
    private String dateFmt;
	/**当前序列号*/
	@Excel(name = "当前序列号", width = 15)
    @ApiModelProperty(value = "当前序列号")
    private Integer seqNo;
	/**序列号长度*/
	@Excel(name = "序列号长度", width = 15)
    @ApiModelProperty(value = "序列号长度")
    private Integer seqLen;
	/**编码案例*/
	@Excel(name = "编码案例", width = 15)
    @ApiModelProperty(value = "编码案例")
    private String codeExample;
    /**当前年*/
    @Excel(name = "当前年", width = 15)
    @ApiModelProperty(value = "当前年")
    private Integer year;
    /**当前月*/
    @Excel(name = "当前月", width = 15)
    @ApiModelProperty(value = "当前月")
    private Integer month;
    /**当前日*/
    @Excel(name = "当前日", width = 15)
    @ApiModelProperty(value = "当前日")
    private Integer day;
	/**创建人*/
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**修改人*/
    @ApiModelProperty(value = "修改人")
    private String updateBy;
	/**修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;
	/**启用标志*/
	@Excel(name = "启用标志", width = 15)
    @ApiModelProperty(value = "启用标志")
    private String enableFlag;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**租户ID*/
	@Excel(name = "租户ID", width = 15)
    @ApiModelProperty(value = "租户ID")
    private Integer tenantId;

}
